package com.zhy.utils;

import lombok.Data;

import java.util.List;

/**
 *分页工具类
 * @author zhy
 */
@Data
public class PageTool {
  private  int pageNo;
  private  int pageSize;
  private  int pageCount;
  private  int pageSum;
  private List list;

  public int js(){
    return pageCount%pageSize==0?pageCount/pageSize:pageCount/pageSize+1;
  }
}
